package com.adcc.loadsheet.billing.mapper.mysql.chargerule;

import com.adcc.loadsheet.billing.entity.chargerule.BillingLadderEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 计费阶梯Mapper
 * Created by zhaoml on 2020-04-07.
 */
@Mapper
public interface BillingLadderEntityMapper {

    //根据条件获取计费阶梯（升序排列）
    List<BillingLadderEntity> selectByBillingRuleId(Integer billingLadderId);

    //创建计费阶梯（单个）
    Integer insert(BillingLadderEntity record);

    //创建计费阶梯（批量）
    int insertBatch(List<BillingLadderEntity> recordList);

    //根据计费规则ID删除计费阶梯
    int deleteByBillingRuleId(Integer billingRuleId);
}